#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int num;
    int i, j, k;
    while (scanf("%d", &num) != EOF)

    {
        for (i = 0; i <= num; i++)
        {
            for (j = 0; j < num - i; j++)
            {
                printf("  ");
            }
            for (k = 0; k <= i; k++)
            {
                printf("*");
            }
            printf("\n");
        }
        for (i = 0; i < num; i++)
        {
            for (j = 0; j <= i; j++)
            {
                printf("  ");
            }
            for (k = 0; k < num - i; k++)
            {
                printf("*");
            }
            printf("\n");
        }
    }
    return 0;
}